package com.spring.springmvc.响应;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/page")
@Controller

public class 返回页面 {
    @RequestMapping("/s1")
    public String respond(){
        return "/Index.html";
    }
}
/*
@Controller 是返回页面
@RestController = @Controller + @ResponseBody
@ResponseBody 可以修饰类，也可以修饰方法，返回数据


 */
